<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript">
	function addPue(){
	var purName=$("#purName").val();
	var purType=$("#type").val();
	var purValue=$("#purValue").val();
	var icon=$("#icon").val();
	var purCode=$("#purCode").val();
	var pid=$("#pid").val();
	
	alert(purName+","+purType+","+purValue+","+icon+","+purCode+","+pid);
	//alert(111212);
}
</script>
<script type="text/javascript" src="${ctx}/purView/purViewAdd.js"></script>
<div style="padding: 3px;">
	<form id="purViewAddForm" method="post">
		<table class="grid">
			<tr>
				<td>权限点名称</td>
				<td><input name="purName" id="purName" type="text" placeholder="权限点名称" class="easyui-validatebox span2" data-options="required:true" ><font color="red" style="font-weight:bold;" face="verdana">*</font></td>
				<td>类型</td>
				<td><select name="purType" id="purType" class="easyui-combobox" style="width: 200px;  height: 29px;"  data-options="required:true">
						 <c:forEach items="${purTypes}" var="purType">
					 <option value="${purType.ddvCode}">${purType.value}</option>
					</c:forEach>	
				</select></td>
			</tr>
			<tr>
				<td>访问路径</td>
				<td><input name="purValue" id="purValue" type="text" placeholder="请输入访问路径" class="easyui-validatebox span2" data-options="width:140,height:29" ></td>
				<td>菜单图标</td>
				<td ><input  name="icon" id="icon"/></td>
			</tr>
			<tr>
				<td>权限点编码</td>
				<td><input name="purCode" id="purCode" type="text" placeholder="请按照规则填写code" class="easyui-validatebox span2" data-options="required:true,width:140,height:29" ><font color="red" style="font-weight:bold;" face="verdana">*</font></td>
			</tr>
			<tr>
				<td>上级权限点</td>
				<td colspan="3"><select id="parentPurId" name="parentPurId" style="width: 200px; height: 29px;"></select>
				<a class="easyui-linkbutton" href="javascript:void(0)" onclick="$('#parentPurId').combotree('clear');" >清空</a></td>
			</tr>
		</table>
	</form>
</div>